import request from "@/request/index.js";

//退出登录
export function quitLogin(){
	return request('/front/logout','get',null)
}
//注销账号
export function cancelUser(){
	return request('/front/close/account','delete',null)
}
//获取用户信息
export function getUserInfo(){
	return request('/front/userInfo','get',null)
}
//房东入驻认证
export function getSettled(data){
	return request('/front/landlord/houseUserAuth/addHouseUserAuth','post',data)
}
//账单管理
export function getSelectHouseBill(data){
	return request('/front/landlord/housebill/selectHouseBill','post',data)
}
//账单详情
export function getSelectHouseBillDetail(id){
	return request('/front/landlord/housebill/selectHouseBill/' + id,'get',null)
}
// 确认收租（修改账单状态）
export function getUpdateBillPayStatus(id){
	return request('/front/landlord/housebill/updateBillPayStatus/' + id,'get',null)
}
//房东房子所在的所有小区
export function getSelectCommunityName(){
	return request('/front/landlord/housebill/selectCommunityName','get',null)
}
export function getSelectCommunityEntity(){
	return request('/front/landlord/housebill/selectCommunityEntity','get',null)
}
//房东查询本月待收账单
export function getHousebill(){
	return request('/front/landlord/housebill/month/due','get',null)
}
//房东查询本月应收账单
export function getReceivable(){
	return request('/front/landlord/housebill/month/receivable','get',null)
}

//修改密码获取验证码
export function putPasswordCode(phone){
	return request('/front/userInfo/edit/code/'+ phone,'get',null)
}
//修改密码
export function putPassword(data){
	return request('/front/userInfo/edit/password','put',data)
}
//获取客服信息
export function getCustomer(){
	return request('/front/landlord/customer','get',null)
}
//获取当用户的通知列表
export function getuserinfo(messageType){
	return request('/front/landlord/message/list?messageType='+ messageType, 'get',null)
}
//用户提交意见反馈
export function userInfoFeedback(data){
	return request('/front/landlord/feedback','post',data)
}
